<template>
	<mescroll-uni @init="mescrollInit" :up="upOption" :down="downOption" @down="downCallback" @up="upCallback" :bottom="100">
		<view class="container">
            <swiper :style='{"padding":"0","boxShadow":"0 2rpx 12rpx rgba(0,0,0,0)","margin":"10rpx 3%","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(255,255,255,1)","borderRadius":"20rpx","borderWidth":"0","width":"94%","borderStyle":"solid","height":"300rpx"}' class="swiper" :indicator-dots='".swiper-pagination"==null?false:true' :autoplay='autoplaySwiper' :circular='true' indicator-active-color='#000000' indicator-color='rgba(0, 0, 0, .3)' :duration='1000' :interval='intervalSwiper' :vertical='"horizontal"=="horizontal"?false:true'>
      	<swiper-item :style='{"padding":"0","boxShadow":"0 2rpx 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(255,255,255,1)","borderRadius":"20rpx","borderWidth":"0","width":"100%","borderStyle":"solid","height":"300rpx"}' v-for="(swiper,index) in swiperList" :key="index">
      		<image :style='{"padding":"0","boxShadow":"0 2rpx 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(255,255,255,1)","borderRadius":"20rpx","borderWidth":"0","width":"100%","borderStyle":"solid","height":"300rpx"}' mode="aspectFill" :src="baseUrl+swiper"></image>
      	</swiper-item>
      </swiper>
                              <view class="detail-content">

			<view class="price detail-list-item" :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0","borderColor":"rgba(37, 37, 37, 1)","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0 0 2rpx","width":"100%","borderStyle":"dashed ","height":"auto"}'>
				<view class="text icon" :style='{"padding":"0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(79, 74, 78, 1)","color":"rgba(255, 255, 255, 1)","textAlign":"center","borderRadius":"0","borderWidth":"0","width":"20%","lineHeight":"50rpx","fontSize":"28rpx","borderStyle":"solid"}'>
					<view style="line-height: 1;" v-if="storeupFlag==1" class="cuIcon-favorfill" @click="shoucang"></view>
					<view style="line-height: 1;" v-if="storeupFlag==0" class="cuIcon-favor" @click="shoucang"></view>
				</view>
			</view>

                <view class="name shop-title" :style='{"padding":"0 24rpx","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 0 20rpx 0","borderColor":"rgba(0, 0, 0, 1)","backgroundColor":"#fff","color":"rgba(0, 0, 0, 1)","borderRadius":"0","borderWidth":"0 0 02rpx","width":"100%","lineHeight":"80rpx","fontSize":"32rpx","borderStyle":"dashed "}'>
					食谱名称：{{detail.shipumingcheng}}
				</view>

				<view class="detail-list-item" :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0","borderColor":"rgba(37, 37, 37, 1)","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0 0 2rpx","width":"100%","borderStyle":"dashed ","height":"auto"}'>
					<view class="lable" :style='{"padding":"0 0 0 40rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(0,0,0,0)","color":"#333","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"200rpx","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>体质类型：</view>
					<view  class="text" :style='{"padding":"0 10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(0,0,0,0)","color":"#333","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"calc(100% - 200rpx)","lineHeight":"auto","fontSize":"28rpx","borderStyle":"solid"}'>{{detail.tizhileixing}}</view>
				</view>
				<view class="detail-list-item" :style='{"padding":"0","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0","borderColor":"rgba(37, 37, 37, 1)","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0 0 2rpx","width":"100%","borderStyle":"dashed ","height":"auto"}'>
					<view class="lable" :style='{"padding":"0 0 0 40rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(0,0,0,0)","color":"#333","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"200rpx","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>点击次数：</view>
					<view  class="text" :style='{"padding":"0 10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"rgba(0,0,0,0)","color":"#333","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"calc(100% - 200rpx)","lineHeight":"auto","fontSize":"28rpx","borderStyle":"solid"}'>{{detail.clicknum}}</view>
				</view>

			</view>

            <view  class="time-content" :style='{"padding":"0 24rpx 20rpx","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 0 20rpx 0","borderColor":"#fff","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}' style="height:auto !important;">
				<view class="header" :style='{"padding":"10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"#fff","borderRadius":"0","color":"#333","borderWidth":"0","width":"100%","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>
					简介
				</view>
				<view class="content" :style='{"padding":"24rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","borderRadius":"8rpx","color":"#333","borderWidth":"2rpx","width":"100%","fontSize":"28rpx","borderStyle":"solid","height":"auto"}'>
					{{detail.jianjie}}
				</view>
			</view>

            <view class="time-content" :style='{"padding":"0 24rpx 20rpx","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 0 20rpx 0","borderColor":"#fff","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}' style="height:auto !important;">
				<view class="header" :style='{"padding":"10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"#fff","borderRadius":"0","color":"#333","borderWidth":"0","width":"100%","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>
					功效介绍
				</view>
				<view class="content" :style='{"padding":"24rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","borderRadius":"8rpx","color":"#333","borderWidth":"2rpx","width":"100%","fontSize":"28rpx","borderStyle":"solid","height":"auto"}'>
					<rich-text style="font-size: 33upx;line-height: 50upx;letter-spacing: 5upx;" :nodes="detail.gongxiaojieshao"></rich-text>
				</view>
			</view>
            <view class="time-content" :style='{"padding":"0 24rpx 20rpx","boxShadow":"0 0 0px rgba(0,0,0,.3)","margin":"0 0 20rpx 0","borderColor":"#fff","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}' style="height:auto !important;">
				<view class="header" :style='{"padding":"10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,0)","backgroundColor":"#fff","borderRadius":"0","color":"#333","borderWidth":"0","width":"100%","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>
					做法介绍
				</view>
				<view class="content" :style='{"padding":"24rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","borderRadius":"8rpx","color":"#333","borderWidth":"2rpx","width":"100%","fontSize":"28rpx","borderStyle":"solid","height":"auto"}'>
					<rich-text style="font-size: 33upx;line-height: 50upx;letter-spacing: 5upx;" :nodes="detail.zuofajieshao"></rich-text>
				</view>
			</view>

			<view class="time-content" :style='{"padding":"24rpx","boxShadow":"0 0 16rpx rgba(0,0,0,0)","margin":"0 0 20rpx 0","borderColor":"red","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"solid","height":"auto"}'>
				<view class="comoment-header" :style='{"padding":"0","boxShadow":"0 0 16rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,.2)","backgroundColor":"rgba(220, 220, 220, 0)","borderRadius":"0","borderWidth":"0","width":"100%","borderStyle":"double","height":"auto"}'>
					<view :style='{"padding":"0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","borderRadius":"0","color":"#333","borderWidth":"0","width":"auto","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}'>
						评论
					</view>
					<view :style='{"padding":"0 10rpx","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"red","backgroundColor":"rgba(209, 176, 134, 1)","color":"rgba(255, 255, 255, 1)","isBtn":true,"borderRadius":"0","borderWidth":"0","width":"auto","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}' @click="onCommentTap" class="btn-comment-content" style="display: flex;align-items: center;">
						<view class="cuIcon-add"></view>添加评论
					</view>
				</view>

				<view class="cu-list comment" style="margin-top: 20upx;">
					<view :style='{"padding":"0","boxShadow":"0 0 16rpx rgba(0,0,0,0)","margin":"0","borderColor":"rgba(0,0,0,.2)","backgroundColor":"#fff","borderRadius":"0","borderWidth":"0 0 2rpx 0","width":"100%","borderStyle":"dashed","height":"auto"}' v-for="(item,index) in commentList" v-bind:key="index" class="cu-item comment-item">
						<view class="content">
							<view :style='{"padding":"0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(0, 0, 0, 1)","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"auto","lineHeight":"80rpx","fontSize":"28rpx","borderStyle":"solid"}' class="text-grey">{{item.nickname}}</view>
							<view :style='{"padding":"0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(164, 164, 164, 1)","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32rpx","fontSize":"24rpx","borderStyle":"solid"}' class="text-gray text-content text-df content">
								{{item.content}}
							</view>
							<view :style='{"padding":"12rpx 0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(164, 164, 164, 1)","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"auto","fontSize":"24rpx","borderStyle":"solid"}' class="margin-top-sm text-gray text-df">{{item.addtime}}</view>
							<view v-if="item.reply" :style='{"padding":"0","boxShadow":"0 0 12rpx rgba(0,0,0,0)","margin":"0","borderColor":"#ccc","backgroundColor":"#fff","color":"rgba(164, 164, 164, 1)","textAlign":"left","borderRadius":"0","borderWidth":"0","width":"100%","lineHeight":"32rpx","fontSize":"24rpx","borderStyle":"solid"}' class="text-gray text-content text-df content">
								回复:{{item.reply}}
							</view>
						</view>
					</view>

				</view>

			</view>

			<view class="bottom-content cu-bar bg-white tabbar border shop" :style='{"padding":"0px","boxShadow":"rgb(0 0 0 / 0%) 0px 0px 12rpx","margin":"0px","borderColor":"rgb(204, 204, 204)","backgroundColor":"rgb(255, 255, 255)","borderRadius":"0px","borderWidth":"2rpx 0 0 0","width":"100%","borderStyle":"solid","height":"100rpx"}'>
				<view style="text-align: left;display: flex;">
				</view>
				<view style="text-align: right;">
                </view>
			</view>
		</view>

		<!-- 确认完成弹窗 -->
		<uni-popup class="popup-content" ref="popup" type="center">
			<form class="popup-form">
				<view class="cu-form-group margin-top">
					<picker @change="sfshChange" :value="sfshIndex" :range="sfshOptions">
						<view class="uni-input">{{detail.sfsh?detail.sfsh:'选择审核结果'}}</view>
					</picker>
				</view>
				<view class="cu-form-group">
					<!-- <view class="title">审核回复</view> -->
					<textarea style="width: 200px;" v-model="detail.shhf" placeholder="审核回复"></textarea>
					<!-- <input v-model="douyinId" placeholder="审核回复" name="input"></input> -->
				</view>
				<view class="btn-content">
					<button @tap="onCloseWinTap" class="cu-btn bg-cyan">取消</button>
					<button @tap="onFinishTap" class="cu-btn bg-red">确认</button>
				</view>
			</form>
		</uni-popup>

	</mescroll-uni>
</template>

<script>
	export default {
		data() {
			return {
				autoplaySwiper: {"delay":5000,"disableOnInteraction":false} ? true : false,
				intervalSwiper: {"delay":5000,"disableOnInteraction":false} ? 5000 : 5000,
				btnColor: ['#409eff','#67c23a','#909399','#e6a23c','#f56c6c','#356c6c','#351c6c','#f093a9','#a7c23a','#104eff','#10441f','#a21233','#503319'],
				id: '',
                userid: '',
				detail: {},
				swiperList: [],
				commentList: [],
				mescroll: null, //mescroll实例对象
				downOption: {
					auto: false //是否在初始化后,自动执行下拉回调callback; 默认true
				},
				upOption: {
					noMoreSize: 3, //如果列表已无数据,可设置列表的总数量要大于半页才显示无更多数据;避免列表数据过少(比如只有一条数据),显示无更多数据会不好看; 默认5
					textNoMore: '~ 没有更多了 ~',
				},
				hasNext: true,
				user: {},
				sfshIndex: -1,
				sfshOptions: ['通过','不通过'],
				storeupFlag: 0,
				count: 0,
				timer: null
			}
		},
		computed: {
			baseUrl() {
				return this.$base.url;
			},
			SecondToDate: function() {
				var time = this.count;
				if (null != time && "" != time) {
					if (time > 60 && time < 60 * 60) {
						time =
							parseInt(time / 60.0) +
							"分钟" +
							parseInt((parseFloat(time / 60.0) - parseInt(time / 60.0)) * 60) +
							"秒";
					} else if (time >= 60 * 60 && time < 60 * 60 * 24) {
						time =
							parseInt(time / 3600.0) +
							"小时" +
							parseInt(
								(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
							) +
							"分钟" +
							parseInt(
								(parseFloat(
										(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
									) -
									parseInt(
										(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
									)) *
								60
							) +
							"秒";
					} else if (time >= 60 * 60 * 24) {
						time =
							parseInt(time / 3600.0 / 24) +
							"天" +
							parseInt(
								(parseFloat(time / 3600.0 / 24) - parseInt(time / 3600.0 / 24)) *
								24
							) +
							"小时" +
							parseInt(
								(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
							) +
							"分钟" +
							parseInt(
								(parseFloat(
										(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
									) -
									parseInt(
										(parseFloat(time / 3600.0) - parseInt(time / 3600.0)) * 60
									)) *
								60
							) +
							"秒";
					} else {
						time = parseInt(time) + "秒";
					}
				}
				return time;
			}
		},
		async onLoad(options) {
			this.id = options.id;
            if(options.userid) {
                this.userid = options.userid;
            }
		},
		async onShow(options) {
			// 渲染数据
			this.init();
			let table = uni.getStorageSync("nowTable");
			// 获取用户信息
			let res = await this.$api.session(table);
			this.user = res.data;
			this.btnColor = this.btnColor.sort(()=> {
				return (0.5-Math.random());
			});
			this.getStoreup();
			let cleanType = uni.getStorageSync('discusstizhishipuCleanType')
			if(cleanType){
				uni.removeStorageSync('discusstizhishipuCleanType')
				this.mescroll.num = 1
				this.upCallback(this.mescroll)
			}
		},
		destroyed: function() {
			//window.clearInterval(this.inter);
		},
		methods: {
			// 支付
			onPayTap(){
				uni.setStorageSync('paytable','tizhishipu');
				uni.setStorageSync('payObject',this.detail);
				this.$utils.jump('../pay-confirm/pay-confirm?type=1')
			},
			// 收藏
			async getStoreup() {
				let params = {
					page: 1,
					limit: 1,
					refid : this.id,
					tablename : 'tizhishipu',
					userid: this.user.id,
					type: 1,
				}
				let res = await this.$api.list(`storeup`, params);
				this.storeupFlag = res.data.list.length;
			},
			async shoucang(){
				let _this = this;
				let params = {
					page: 1,
					limit: 1,
					refid : _this.detail.id,
					tablename : 'tizhishipu',
					userid: _this.user.id,
					type: 1,
				}
				let res = await _this.$api.list(`storeup`, params);
				if (res.data.list.length == 1) {
					let storeupId = res.data.list[0].id;
					uni.showModal({
						title: '提示',
						content: '是否取消',
						success: async function(res) {
							if (res.confirm) {
								await _this.$api.del('storeup', JSON.stringify([storeupId]));
								_this.$utils.msg('取消成功');
								_this.getStoreup();
							}
						}
					});
					return;
				}
				uni.showModal({
					title: '提示',
					content: '是否收藏',
					success: async function(res) {
						if (res.confirm) {
							await _this.$api.add('storeup', {
								userid: _this.user.id,
								name: _this.detail.shipumingcheng,
								picture: _this.swiperList[0],
								refid: _this.detail.id,
								tablename: 'tizhishipu'
							});
							_this.$utils.msg('收藏成功');
							_this.getStoreup();
						}
					}
				});
			},
			// 跨表
			onAcrossTap(tableName,crossOptAudit,statusColumnName,tips,statusColumnValue){
				uni.setStorageSync('crossTable','tizhishipu');
				uni.setStorageSync(`crossObj`, this.detail);
				uni.setStorageSync(`statusColumnName`, statusColumnName);
				uni.setStorageSync(`statusColumnValue`, statusColumnValue);
				uni.setStorageSync(`tips`, tips);
				if(statusColumnName!=''&&!statusColumnName.startsWith("[")) {
					var obj = uni.getStorageSync('crossObj');
					for (var o in obj){
						if(o==statusColumnName && obj[o]==statusColumnValue){
							this.$utils.msg(tips);
							return
						}
					}
				}
				this.$utils.jump(`../${tableName}/add-or-update?cross=true`);
			},
			// 获取详情
			async init(){
				let res = await this.$api.info('tizhishipu', this.id);
				this.detail = res.data;
				// 轮播图片
				this.swiperList = this.detail.shipufengmian ? this.detail.shipufengmian.split(",") : [];
				//修改富文本的图片样式
				this.detail.gongxiaojieshao = this.detail.gongxiaojieshao.replace(/img src/gi,"img style=\"width:100%;\" src");
				//修改富文本的图片样式
				this.detail.zuofajieshao = this.detail.zuofajieshao.replace(/img src/gi,"img style=\"width:100%;\" src");
			},

			// mescroll组件初始化的回调,可获取到mescroll对象
			mescrollInit(mescroll) {
				this.mescroll = mescroll;
			},

			/*下拉刷新的回调 */
			downCallback(mescroll) {
				this.hasNext = true
				mescroll.resetUpScroll()
			},

			/*上拉加载的回调: mescroll携带page的参数, 其中num:当前页 从1开始, size:每页数据条数,默认10 */
			async upCallback(mescroll) {
                let res = await this.$api.list('discusstizhishipu', {
					page: mescroll.num,
					limit: 10,
					refid: this.id
				});
				// 如果是第一页数据置空
				if (mescroll.num == 1) this.commentList = [];
				this.commentList = this.commentList.concat(res.data.list);
				if (res.data.list.length == 0) this.hasNext = false;
				mescroll.endSuccess(mescroll.size, this.hasNext);

            },

			// 下载
			download(url){
				let _this = this;
				url=_this.$base.url +  url;
				uni.downloadFile({
					url: url,
					success: (res) => {
						if (res.statusCode === 200) {
							_this.$utils.msg('下载成功');
							 window.open(url);
						}
					}
				});
			},
			//
			onCartTabTap() {
				this.$utils.tab('../shop-cart/shop-cart')
			},
			// 添加评论
			async onCommentTap() {
				this.$utils.jump(`../discusstizhishipu/add-or-update?refid=${this.id}`)
			},
			onSHTap() {
				this.$refs.popup.open()
			},
			// 完成审核
			async onFinishTap() {
				if(!this.detail.sfsh){
					this.$utils.msg('请选择审核状态');
					return
				}
				if(!this.detail.shhf){
					this.$utils.msg('请填写审核回复');
					return
				}
				if(this.detail.sfsh=="通过"){
					this.detail.sfsh = '是'
				}
				if(this.detail.sfsh=="不通过"){
					this.detail.sfsh = '否'
				}
				await this.$api.update('tizhishipu', this.detail);
				this.$utils.msg('审核成功');
				this.$refs.popup.close();
			},
			// 关闭窗口
			onCloseWinTap() {
				this.$refs.popup.close()
			},
			sfshChange(e){
				console.log(this.detail)
				this.sfshIndex = e.target.value
				this.detail.sfsh = this.sfshOptions[this.sfshIndex]
			}
		}
	}
</script>

<style lang="scss">
	.container {
		background-color: #f8fcfa;
		padding-bottom: 120upx;
	}

	.container:after {
		position: fixed;
		top: 0;
		right: 0;
		left: 0;
		bottom: 0;
		content: '';
		background-attachment: fixed;
		background-size: cover;
		background-position: center;
	}

	.swiper {
		width: 94%;
		height: 480upx;
		border-radius: 24rpx;
		overflow: hidden;
		box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.08);
		margin: 20rpx auto 40rpx;

		image {
			width: 100%;
			height: 100%;
			object-fit: cover;
			transition: all 0.7s ease;

			&:hover {
				transform: scale(1.05);
			}
		}
	}

	.detail-content {
		font-size: 28upx;
		color: #666;
		background: #FFFFFF;
		line-height: 48upx;
		border-radius: 24rpx;
		box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
		margin: 0 20rpx 30rpx;
		padding: 0 0 20rpx 0;
		overflow: hidden;
		position: relative;

		&:before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 4rpx;
			background: linear-gradient(to right, #8fd3f4, #a8e6cf);
		}

		.name {
			font-size: 36rpx;
			font-weight: 600;
			color: #333;
			padding: 40rpx 40rpx;
			margin-bottom: 15rpx;
			background: linear-gradient(to right, #f9f9f9, #ffffff);
			position: relative;

			&:before {
				content: '';
				position: absolute;
				left: 0;
				top: 40rpx;
				bottom: 40rpx;
				width: 8rpx;
				background: linear-gradient(to bottom, #a8e6cf, #8fd3f4);
				border-radius: 4rpx;
			}

			&:after {
				content: '';
				position: absolute;
				left: 40rpx;
				right: 40rpx;
				bottom: 0;
				height: 1px;
				background: linear-gradient(to right, #e0e0e0 30%, rgba(224, 224, 224, 0));
			}
		}

		.price {
			font-size: 32rpx;
			color: #a8e6cf;
		}
	}

	.time-content {
		background: #FFFFFF;
		padding: 30rpx 30rpx;
		font-size: 30upx;
		border-radius: 24rpx;
		margin: 25upx 20rpx;
		box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.04);
		overflow: hidden;
		position: relative;

		&:before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			width: 60%;
			height: 4rpx;
			background: linear-gradient(to right, #a8e6cf, rgba(168, 230, 207, 0));
			border-radius: 0 3rpx 3rpx 0;
		}

		.header {
			font-size: 34upx;
			font-weight: 600;
			color: #333;
			margin-bottom: 25upx;
			padding-bottom: 20rpx;
			position: relative;
			padding-left: 30rpx;

			&:before {
				content: '';
				position: absolute;
				left: 0;
				top: 4rpx;
				bottom: 20rpx;
				width: 6rpx;
				border-radius: 3rpx;
				background: linear-gradient(to bottom, #a8e6cf, #8fd3f4);
			}

			&:after {
				content: '';
				position: absolute;
				left: 0;
				right: 0;
				bottom: 0;
				height: 1px;
				background: linear-gradient(to right, #e0e0e0 40%, rgba(224, 224, 224, 0));
			}
		}

		.content {
			padding: 30rpx;
			background-color: #f8fcfa;
			border-radius: 16rpx;
			line-height: 1.7;
			color: #555;
			border: none !important;
			box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02) !important;
			transition: all 0.3s ease;
			margin-top: 15rpx;
			position: relative;

			&:hover {
				background-color: #f0f9f4;
				box-shadow: 0 3rpx 10rpx rgba(0, 0, 0, 0.04) !important;
				transform: translateY(-2rpx);
			}

			rich-text {
				letter-spacing: 2rpx !important;
			}
		}
	}

	.bottom-content {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		background-color: rgba(255, 255, 255, 0.95);
		backdrop-filter: blur(10px);
		box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.04);
		padding: 15rpx 30rpx;
		z-index: 9;
		border-radius: 30rpx 30rpx 0 0;

		button {
			margin: 0 10rpx !important;
			padding: 0 40rpx;
			height: 80rpx;
			line-height: 80rpx;
			font-size: 28rpx;
			border-radius: 40rpx;
			background: linear-gradient(135deg, #a8e6cf, #8fd3f4);
			color: #fff;
			box-shadow: 0 4rpx 12rpx rgba(168, 230, 207, 0.3);
			transition: all 0.3s;

			&:active {
				transform: scale(0.95);
				box-shadow: 0 2rpx 6rpx rgba(168, 230, 207, 0.2);
			}
		}
	}

	.comoment-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding-bottom: 25upx;
		position: relative;

		&:after {
			content: '';
			position: absolute;
			left: 0;
			right: 0;
			bottom: 0;
			height: 1px;
			background: linear-gradient(to right, #e0e0e0 50%, rgba(224, 224, 224, 0));
		}

		.btn-comment-content {
			background: linear-gradient(135deg, #a8e6cf, #8fd3f4) !important;
			color: #fff !important;
			font-size: 26rpx !important;
			border-radius: 30rpx !important;
			padding: 0 30rpx !important;
			height: 70rpx !important;
			line-height: 70rpx !important;
			font-weight: normal !important;
			box-shadow: 0 4rpx 10rpx rgba(168, 230, 207, 0.2) !important;
			display: flex;
			align-items: center;

			.cuIcon-add {
				margin-right: 8rpx;
				font-size: 28rpx;
			}
		}
	}

	.comment-item {
		margin-bottom: 25upx;
		padding-bottom: 25upx;
		position: relative;

		&:last-child {
			border-bottom: none;
			margin-bottom: 0;
		}

		&:not(:last-child):after {
			content: '';
			position: absolute;
			left: 30%;
			right: 0;
			bottom: 0;
			height: 1px;
			background: linear-gradient(to right, #e0e0e0, rgba(224, 224, 224, 0));
		}

		.content {
			margin-left: 20upx;
			margin-top: 15upx;
			padding: 25rpx 30rpx;
			background-color: #f8fcfa;
			border-radius: 16rpx;
			position: relative;
			box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.02);

			&:before {
				content: '';
				position: absolute;
				top: -12rpx;
				left: 25rpx;
				width: 0;
				height: 0;
				border-left: 12rpx solid transparent;
				border-right: 12rpx solid transparent;
				border-bottom: 12rpx solid #f8fcfa;
			}
		}
	}

	.icon {
		width: 70upx;
		height: 70upx;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 35rpx;
		background: linear-gradient(135deg, #a8e6cf, #8fd3f4);
		box-shadow: 0 4rpx 10rpx rgba(168, 230, 207, 0.2);

		.cuIcon-favorfill, .cuIcon-favor {
			font-size: 36rpx;
			color: #fff;
		}
	}

	.detail-list-item {
		padding: 0 30upx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		height: 90upx;
		background-color: #fff;
		transition: all 0.3s ease;
		position: relative;

		&:after {
			content: '';
			position: absolute;
			left: 30rpx;
			right: 30rpx;
			bottom: 0;
			height: 1px;
			background: linear-gradient(to right, #e0e0e0, rgba(224, 224, 224, 0));
		}

		&:hover {
			background-color: #f8fcfa;
		}

		.lable {
			font-size: 28upx;
			color: #333;
			font-weight: 500;
			position: relative;
			padding-left: 20rpx;

			&:before {
				content: '';
				position: absolute;
				left: 0;
				top: 50%;
				transform: translateY(-50%);
				width: 6rpx;
				height: 6rpx;
				border-radius: 3rpx;
				background-color: #a8e6cf;
			}
		}

		.text {
			flex: 1;
			font-size: 28upx;
			color: #666;
			text-align: left;
			margin-left: 25rpx;
		}

		&.favor {
			.el-icon-star-on {
				color: #ffd3b6;
				font-size: 32rpx;
			}
		}
	}

	.detail-content .shop-title {
		padding: 40upx 50upx;
		box-sizing: border-box;
		line-height: 1.5;
		font-weight: 600;
		color: #333;
		font-size: 34rpx;
		position: relative;

		&:after {
			content: '';
			position: absolute;
			left: 30rpx;
			right: 30rpx;
			bottom: 0;
			height: 1px;
			background: linear-gradient(to right, #e0e0e0, rgba(224, 224, 224, 0));
		}
	}

	.cu-list.comment {
		background-color: #fff;
		border-radius: 16rpx;
		padding: 20rpx;
		margin-top: 30rpx;
		box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.02);
		position: relative;
		overflow: hidden;

		&:before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			height: 4rpx;
			background: linear-gradient(to right, rgba(168, 230, 207, 0), #a8e6cf 50%, rgba(168, 230, 207, 0));
		}
	}

	/* 评论弹窗样式 */
	.comment-popup {
		position: relative;
		background-color: #fff;
		border-radius: 20rpx;
		overflow: hidden;
		padding: 30rpx;
		width: 80%;
		max-width: 600rpx;
		box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);

		&:before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			height: 6rpx;
			background: linear-gradient(to right, #8fd3f4, #a8e6cf);
		}

		.popup-title {
			font-size: 32rpx;
			color: #333;
			font-weight: 600;
			margin-bottom: 30rpx;
			text-align: center;
			position: relative;

			&:after {
				content: '';
				position: absolute;
				bottom: -10rpx;
				left: 40%;
				right: 40%;
				height: 2rpx;
				background: linear-gradient(to right, rgba(168, 230, 207, 0), #a8e6cf, rgba(168, 230, 207, 0));
			}
		}

		.textarea-box {
			border: 1rpx solid #eee;
			border-radius: 12rpx;
			padding: 20rpx;
			margin-bottom: 30rpx;
			background-color: #f8fcfa;
		}

		textarea {
			width: 100%;
			height: 200rpx;
			font-size: 28rpx;
			color: #333;
		}

		.btn-group {
			display: flex;
			justify-content: space-between;

			button {
				flex: 1;
				margin: 0 10rpx;
				height: 80rpx;
				line-height: 80rpx;
				font-size: 28rpx;
				border-radius: 40rpx;

				&.cancel-btn {
					background-color: #f2f2f2;
					color: #666;
				}

				&.submit-btn {
					background: linear-gradient(135deg, #a8e6cf, #8fd3f4);
					color: #fff;
					box-shadow: 0 4rpx 12rpx rgba(168, 230, 207, 0.3);
				}

				&:active {
					transform: scale(0.95);
				}
			}
		}
	}
</style>
